package com.xzy.java.observer;

import java.util.Observable;

/**
 * Java自身对观察者模式的具体实现
 *
 * @author xzy.xiao
 * @date 2023/3/14  9:47
 */
class MyObservable extends Observable {
    /**
     * Marks this <tt>Observable</tt> object as having been changed; the
     * <tt>hasChanged</tt> method will now return <tt>true</tt>.
     */
    @Override
    protected synchronized void setChanged() {
        super.setChanged();
    }
}
